package com.itheima.protocol.disruptor;

import org.apache.log4j.Logger;

import com.lmax.disruptor.ExceptionHandler;

public class IntEventExceptionHandler implements ExceptionHandler {
    
    private static final Logger logger = Logger.getLogger(IntEventExceptionHandler.class);  

    @Override
    public void handleEventException(Throwable ex, long arg1, Object arg2) {
        logger.error("handleEventException", ex); 
        
    }

    @Override
    public void handleOnShutdownException(Throwable ex) {
        logger.error("handleOnStartException", ex); 
        
    }

    @Override
    public void handleOnStartException(Throwable ex) {
        logger.error("handleOnShutdownException", ex);
        
    }

}
